<?php
/**
 * Application entry point
 *
 * @category  Yii Template
 * @author    Dmitry Konovalchuk <konovalchuk@ebola.com.ua>
 * @copyright 2013 Ebola Communications
 * @link      http://www.ebola.com.ua/
 */

$dir       = dirname(__FILE__);
$protected = realpath($dir . '/../protected');
$env       = realpath($protected . '/env.php');
$config    = realpath($protected . '/config/main.php');
$yii       = realpath($protected . '/vendor/yii/framework/yii.php');
$app       = realpath($protected . '/vendor/yiihoo-cms/YWebApplication.php');

require_once $env;
require_once $yii;
require_once $app;

$application = USE_YIIHOO_CMS == true
             ? new YWebApplication($config)
             : new CWebApplication($config);

$application->run();
